import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const BIZ: AppRouteRecordRaw = {
    path: '/biz',
    name: 'biz',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.biz',
        requiresAuth: true,
        icon: 'icon-list',
        order: 10,
    },
    children: [
        
        {
            path: 'index',
            name: 'BizIndex',
            component: () => import('@/views/biz/index.vue'),
            meta: {
                locale: 'menu.biz.index',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-align-left',
            },
        },
        {
            path: 'goods',
            name: 'BizGoods',
            component: () => import('@/views/biz/goods.vue'),
            meta: {
                locale: 'menu.biz.goods',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-archive',
            },
        },
        {
            path: 'tag',
            name: 'BizTag',
            component: () => import('@/views/biz/tag.vue'),
            meta: {
                locale: 'menu.biz.tag',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-tag',
            },
        },
        {
            path: 'multi',
            name: 'BizMulti',
            component: () => import('@/views/biz/multi.vue'),
            meta: {
                locale: 'menu.biz.multi',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-copy',
            },
        }
    ],
};

export default BIZ;
